package cn.stylefeng.guns.modular.logistics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 物流中心的运费模板表
 * @author allen
 * @date 2021/4/11 22:51
 * @version 1.0
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "logistics_freight_template")
public class LogisticsFreightTemplateEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 运费模板名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 运费模板类型，1：固定运费，2：满X元包邮，3：自定义规则
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * 运费模板的规则
     */
    @TableField(value = "`rule`")
    private String rule;

    /**
     * 运费模板的说明备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_TYPE = "type";

    public static final String COL_RULE = "rule";

    public static final String COL_REMARK = "remark";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}